package cn.chainco.cts.idao;

import java.util.List;
import java.util.Map;

import cn.chainco.cts.jdo.User;

public interface IUserDao extends GenericDao<User, Long>{

	public User findByNameAndPass(final String name , final String pwd);
	public List<User> findByName(final String name);
	public <E>List<E> findSqlByElist(String sql , Class className, Map<String , String> mp);
	public List<User> findUser(String userName , String createTime , Integer status , Map<String , String> searchCond);
	
	/**
	 * 删除用户和相关连的数据
	 * @param company
	 * @return
	 */
	public int delUserByAll(User user);
}
